function create_159_Q(T,WA_up,WA_down,stru_quad_up,stru_quad_down)

fqbdy3=fopen('qbdy3.bdf','w');
for i=1:size(WA_up)
    fprintf(fqbdy3,'%6s%10d%8s%16.5e%16s%8d\n','QBDY3*',100000+stru_quad_up(i),'',WA_up(i),'',stru_quad_up(i)+600000);
    fprintf(fqbdy3,'%1s\n','*');
end
for i=1:size(WA_down)
    fprintf(fqbdy3,'%6s%10d%8s%16.5e%16s%8d\n','QBDY3*',200000+stru_quad_down(i),'',WA_down(i),'',stru_quad_down(i)+700000);
    fprintf(fqbdy3,'%1s\n','*');
end
fclose(fqbdy3);

ftemp=fopen('temp.bdf','w');
for i=1:size(T,1)
    fprintf(ftemp,'%s%8d%8d%8.2f\n','TEMP    ',1,T(i,1),T(i,2));
end
fclose(ftemp);
end